<template>
  <div>
    <h1>{{ mes }}</h1>
    <button @click="btn">翻转哦</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      mes: "Hello,World",
    };
  },

  created() {},

  methods: {
    btn() {
      console.log(this.mes.split(""));
      console.log(this.mes.split("").reverse());
      console.log(this.mes.split("").reverse().join(""));
      this.mes = this.mes.split("").reverse().join("");
    },
  },
};
</script>

<style scoped lang='less'>
</style>
